﻿using System;
using System.ComponentModel.Composition;

namespace MVVMPlugin
{
    /// <summary>
    /// Export attribute for MVVM plugin
    /// </summary>
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ExportPluginAttribute : ExportAttribute
    {
        public string Name { get; private set; }
        public PluginType Type { get; private set; }

        public ExportPluginAttribute(string name, PluginType pluginType)
            : base("MVVMPlugin")
        {
            Name = name;
            Type = pluginType;
        }
    }
}
